package com.pozu.new_retail.service.impl;

import com.pozu.new_retail.dao.mapper.CardTracesItemMapper;
import com.pozu.new_retail.dao.model.CardTraceItem;
import com.pozu.new_retail.service.CardTracesItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * 操作流水记录 service 实现类
 *
 * @author shenxueyuan
 * @Date 2019/3/20
 */
@Service("cardTracesItemService")
public class CardTracesItemServiceImpl implements CardTracesItemService {

    @Autowired
    private CardTracesItemMapper cardTracesUserMapper;

    @Override
    public List<CardTraceItem> queryTracesByMap(HashMap<String, Object> map) {
        return cardTracesUserMapper.queryTracesByMap(map);
    }

    @Override
    public int queryTraceCntByMap(HashMap<String, Object> map) {
        return cardTracesUserMapper.queryTraceCntByMap(map);
    }

    @Override
    public int insertCardTraces(CardTraceItem cardTraceItem) {
        return cardTracesUserMapper.insertCardTraces(cardTraceItem);
    }

    @Override
    public int updateTraceItem(CardTraceItem cardTraceItem) {
        return cardTracesUserMapper.updateTraceItem(cardTraceItem);
    }


}
